<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>单体创建对象</title>
	<script type="text/javascript">
		
		var Tom = {
			name:'tom',

			age:15,

			showname:function(){
				alert(this.name);
			}

			showage:function(){
				alert(this.age);
			}
		}

		alert(Tom.age);
		Tom.showname();
	</script>
</head>
<body>
	
</body>
</html>